/*
 ============================================================================
 Name		: AppSettings.h
 Author	  : 
 Version	 : 1.0
 Copyright   : Your copyright notice
 Description : CAppSettings declaration
 ============================================================================
 */

#ifndef APPSETTINGS_H
#define APPSETTINGS_H

// INCLUDES
#include <e32std.h>
#include <e32base.h>
#include <s32file.h>

class CAppSettings : public CBase
	{
public:
	~CAppSettings();
	static CAppSettings* NewL();
	static CAppSettings* NewLC();

private:
	CAppSettings();
	void ConstructL();
	
	void LoadL(RReadStream& aStream);
	void SaveL(RWriteStream& aStream) const;
	void SetDefaultValues();
public:
	void ExternalizeSettingsDataL();
	void InternalizeSettingsDataL();	

private:
	TFileName iSettingsFile;

private:
	TBool iAutoKeyLock;

public:
	TBool AutoKeyLock(){ return iAutoKeyLock; }
	void SetAutoKeyLock(TBool aAutoKeyLock ) { iAutoKeyLock = aAutoKeyLock; }	
	
private:
	TBool iAutoStart;

public:
	TBool AutoStart(){ return iAutoStart; }
	void SetAutoStart(TBool aAutoStart ) { iAutoStart = aAutoStart; }		
	
private:
	TInt iLapseTime;
	
public:
	TInt LapseTime(){ return iLapseTime; }
	void SetLapseTime(TInt aLapseTime ) { iLapseTime = aLapseTime; }		
	};

#endif // APPSETTINGS_H
